<?php
class Index_model extends  CI_Model {

	var $title   = '';
	var $content = '';
	var $date    = '';

	function index_model()
	{
		parent::__construct();
	}

	function add($nd){
		$this->db->insert('message',$nd);
		if($this->db->affected_rows() > 0){
			return $this->db->insert_id();
		}else{
			return 0;
		}
	}




}
/* End of file user_model.php */
/* Location: /application/models/admin/user_model.php */